const express = require('express')
const router = express.Router()
const { getAddressDetail } = require('../../model/mongo')

router.get('/detail/:addressid', async (req, res) => {
    const { addressid } = req.params
    const result = {
        code: 200,
        msg: '获取地址详情'
    }
    result.data =await getAddressDetail(addressid)
    res.send(JSON.stringify(result))
})

module.exports = router
